#pragma once

#include "AuthEnvironment.h"

namespace ace
{
  static inline int AceCheck(int value, const char *msg = NULL, int expect = SD_TRUE)
  {
    if(value != expect)
      throw auth::CAuthException(value, (msg ? msg : "Failed to call ACE API."));

    return value;
  }
} // namespace ace